#pragma once
#include "action.h"
#include <string>
class LogAction :
	public Action
{
public:
	LogAction(const char* pKeyWord, int  nTimeOut = 0/*ms*/);
	virtual ~LogAction(void);

	virtual bool run(void* param);

	void OnData(const char* buff, size_t size);

private:
	std::string m_strKeyWord;
	int m_nTimeOut;
	std::string str_;

	bool need_exit_;
};
